package com.edu.service;

import java.sql.Timestamp;

import com.edu.entiy.Book;
import com.edu.entiy.BookType;
import com.edu.entiy.History;
import com.edu.entiy.User;
import com.edu.utils.PageTool;

public interface HistoryService {
	//分页查询
	PageTool<History> selectByPage(String currentPage,String pageSize,Integer userId,Integer status);
	//还书
	Boolean returnBook(Book book,User user,History history);
	//根据id查找到history对象
	History selectHistory(int id);
	//延期功能
	void updateEndTime(Timestamp endTime,int historyId);
	//根据书籍id查询
	History selectByBookId(int bookId);
	//根据书籍类型id查询
	History selectByCard(int card);
	//根据userId查询用户
	History selectByuserId(int userId);
}
